﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FastShell.Common.Model
{
	public struct HostConfig
	{
		public string Id { get; set; }
		public string ParentId { get; set; }
		public string Type { get; set; }
		public string Name { get; set; }
		public string Host{ get; set; }

		public int Port{ get; set; }

        public string UserName { get; set; }

		public string Password{ get; set; }

		public string KeyFilePath{ get; set; }

		public string KeyFilePassphrase{ get; set; }	
	}

    public class TopDetail
    {
        public TopDetail(string command, double cpuUsedRateValue, string cpuUsedRate, double memUsedRateValue, string memUsed)
        {
            Command = command;
            CpuUsedRateValue = cpuUsedRateValue;
            CpuUsedRate = cpuUsedRate;
            MemUsedRateValue = memUsedRateValue;
            MemUsed = memUsed;
        }
        public TopDetail()
        {
        }

        public string Command { get; set; }
        public double CpuUsedRateValue { get; set; }
        public string CpuUsedRate { get; set; }
        public double MemUsedRateValue { get; set; }
        public string MemUsed { get; set; }

    }
    public class NetDetail
    {
        public NetDetail(string name, double read, double write)
        {
            Name = name;
            Read = read;
            Write = write;
        }
        public NetDetail()
        {
        }
        public string Name { get; set; }
        public double Read { get; set; }
        public double Write { get; set; }

    }
    public class StorageDetail
    {
        public StorageDetail(string path, string size, string used, double usedRate)
        {
            Path = path;
            Size = size;
            Used = used;
            UsedRate = usedRate;
        }
        public StorageDetail()
        {
        }

        public string Path { get; set; }
        public double UsedRate { get; set; }
        public string Size { get; set; }
        public string Used { get; set; }
        public string UsedAndSize { get { return Used + "/" + Size; } }

    }
}
